﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.MakeStaticPagingComponent.WebsiteTemplate
{
    /// <summary>
    /// 网站模板信息请求模型
    /// </summary>
    public class WebsiteTemplateRequestDto
    {
        /// <summary>
        /// 网站模板名称
        /// </summary>
        [Display(Name = "网站模板名称")]
        [Required(ErrorMessage ="{0} 不能为空。")]
        [StringLength(50,MinimumLength =1,ErrorMessage ="{0} 长度应为 {2} 到 {1} 个字符。")]
        public string TemplateName { get; set; }
        /// <summary>
        /// 网站模板演示地址
        /// </summary>
        [Display(Name = "网站模板演示地址")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(1000, MinimumLength = 1, ErrorMessage = "{0} 长度应为 {2} 到 {1} 个字符。")]
        public string Url { get; set; }
        /// <summary>
        /// 网站模板演示图
        /// </summary>
        [Display(Name = "网站模板演示图")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(1000, MinimumLength = 1, ErrorMessage = "{0} 长度应为 {2} 到 {1} 个字符。")]
        public string ShowImage { get; set; }
        /// <summary>
        /// 已使用
        /// </summary>
        [Display(Name = "已使用")]
        public bool IsUsed { get; set; }
        /// <summary>
        /// 是否免费
        /// </summary>
        [Display(Name = "是否免费")]
        public bool IsFree { get; set; }
        /// <summary>
        /// 已下载
        /// </summary>
        [Display(Name = "已下载")]
        public bool IsDownloaded { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Display(Name = "金额")]
        public decimal Price { get; set; }
        
    }
}
